-- GENERATED SPELL FOR [Alliance Ranger] --


function spell0_26802(pUnit, Event) --@Incendiary Shot,n/a--
pUnit:FullCastSpellOnTarget(47777,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26802', 13000, 1)
end

function spell1_26802(pUnit, Event) --@Incendiary Shot,n/a--
pUnit:FullCastSpellOnTarget(56933,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26802', 13000, 1)
end

function spell2_26802(pUnit, Event) --@Rapid Shot,Self--
pUnit:FullCastSpellOnTarget(48191,pUnit)
pUnit:RegisterEvent('Sorts_26802', 8000, 1)
end

function spell3_26802(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(15620,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26802', 591, 1)
end

function spell4_26802(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(22907,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_26802', 576, 1)
end

function Sorts_26802(pUnit, Event)
local choix_sorts_26802 = math.random(0, 4)
if choix_sorts_26802 == 0 then
pUnit:RegisterEvent('spell0_26802', 1, 1)
end
if choix_sorts_26802 == 1 then
pUnit:RegisterEvent('spell1_26802', 1, 1)
end
if choix_sorts_26802 == 2 then
pUnit:RegisterEvent('spell2_26802', 1, 1)
end
if choix_sorts_26802 == 3 then
pUnit:RegisterEvent('spell3_26802', 1, 1)
end
if choix_sorts_26802 == 4 then
pUnit:RegisterEvent('spell4_26802', 1, 1)
end
end

function mob26802_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_26802', math.random(1500, 3000), 1)
end

function mob26802_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26802_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob26802_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(26802, 1, 'mob26802_Action')
RegisterUnitEvent(26802, 2, 'mob26802_Leave')
RegisterUnitEvent(26802, 3, 'mob26802_Kill')
RegisterUnitEvent(26802, 4, 'mob26802_Die')
